package com.spring.starter.aspectJ;

/**
 * @author tonywang
 * @date 6/15/2018
 */
class CriticismEngineImpl implements CriticismEngine{
    private String[] criticismPool;
    @Override
    public String getCriticism() {
        int i = (int) (Math.random() * criticismPool.length);
        return criticismPool[i];
    }

    public void setCriticismPool(String[] criticismPool) {
        this.criticismPool = criticismPool;
    }
}